package com.waijiaojun.tpo.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.waijiaojun.tpo.utils.Util;
import org.springframework.web.multipart.MultipartFile;

/**
 * Created by Peter on 2018/1/30.
 */
public class Scenario {
    private Long id;//                   bigint not null auto_increment,
    private Long categoryId;//           bigint,
    private Long order;//              varchar(512),
    private String nameCn;//               varchar(512),
    private String nameEn;//               varchar(512),
    private String articleEn;//            text,
    private String articleCn;//            text,
    private String audioUrl;//             varchar(512),
    private String coverUrl;//             varchar(512),
    private String tpo_name;//        varchar(512),
    private String video_url;//        varchar(512),
    private String review_image_url;//内容回顾图片地址
    @JsonIgnore
    private MultipartFile audioFile;
    @JsonIgnore
    private MultipartFile coverFile;
    @JsonIgnore
    private MultipartFile videoFile;
    @JsonIgnore
    private MultipartFile reviewImageFile;

    public MultipartFile getReviewImageFile() {
        return reviewImageFile;
    }

    public void setReviewImageFile(MultipartFile reviewImageFile) {
        this.reviewImageFile = reviewImageFile;
    }

    public String getReview_image_url() {
        return Util.toFullOssUrl(review_image_url);
    }

    public void setReview_image_url(String review_image_url) {
        this.review_image_url = review_image_url;
    }

    public MultipartFile getVideoFile() {
        return videoFile;
    }

    public void setVideoFile(MultipartFile videoFile) {
        this.videoFile = videoFile;
    }

    public String getVideo_url() {
        return Util.toFullOssUrl(video_url);
    }

    public void setVideo_url(String video_url) {
        this.video_url = video_url;
    }

    public MultipartFile getAudioFile() {
        return audioFile;
    }

    public void setAudioFile(MultipartFile audioFile) {
        this.audioFile = audioFile;
    }

    public MultipartFile getCoverFile() {
        return coverFile;
    }

    public void setCoverFile(MultipartFile coverFile) {
        this.coverFile = coverFile;
    }

    public String getTpo_name() {
        return tpo_name;
    }

    public void setTpo_name(String tpo_name) {
        this.tpo_name = tpo_name;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }

    public Long getOrder() {
        return order;
    }

    public void setOrder(Long order) {
        this.order = order;
    }

    public String getNameCn() {
        return nameCn;
    }

    public void setNameCn(String nameCn) {
        this.nameCn = nameCn;
    }

    public String getNameEn() {
        return nameEn;
    }

    public void setNameEn(String nameEn) {
        this.nameEn = nameEn;
    }

    public String getArticleEn() {
        return articleEn;
    }

    public void setArticleEn(String articleEn) {
        this.articleEn = articleEn;
    }

    public String getArticleCn() {
        return articleCn;
    }

    public void setArticleCn(String articleCn) {
        this.articleCn = articleCn;
    }

    public String getAudioUrl() {
        return Util.toFullOssUrl(audioUrl);
    }

    public void setAudioUrl(String audioUrl) {
        this.audioUrl = audioUrl;
    }

    public String getCoverUrl() {
        return Util.toFullOssUrl(coverUrl);
    }

    public void setCoverUrl(String coverUrl) {
        this.coverUrl = coverUrl;
    }

}
